<div class="main_content">
	<table width="98%" name="tab_main" id="tab_main" class="tab_main" border="0" cellpadding="0" cellspacing="1" align="left">
	<thead>
		<tr>
						
						<th width="5%">序号</th>
						<th>运货单号</th>
						<th>申请日期</th>
						<th>所属项目</th>
						<th>运输方式</th>
						<th>审批单号</th>
						<th>运输状态</th>
						<th>起运时间</th>
						<th>预计到货日期</th>
						<th>时间到货日期</th>
						<th width="20%">操作</th>
		</tr>
	</thead>
	<tbody>
	{%foreach from=$arr item=arr_item%}
		<tr class="list_{%$arr_item.transport_track_id%}">
						<td>
							{% if $transport_arr[$arr_item.transport_track_id] %}
								<div id="sign_{%$arr_item.transport_track_id%}" class="sign_pm pcursor sign_plus" onclick="showList(this,{%$arr_item.transport_track_id%})"></div>
							{% else %}
								<div class="sign_pm sign_minus"></div>
							{% /if %}
						</td>
						<td>{%$arr_item.transport_no%}</td>
						<!--<td>{%$arr_item.materials_info%}</td>-->
						<td>{%$arr_item.app_time|date_format:"%Y-%m-%d"%}</td>
						<td>{%$project_arr[$arr_item.project_id]%}</td>
						<td>{%$transport_type_arr[$arr_item.type_id]%}</td>
						<td>{%$arr_item.reply_no%}</td>
						<td>{% if $arr_item.state == 0%}途中{%else%}到达{%/if%}</td>
						<td>{%$arr_item.start_time|date_format:"%Y-%m-%d"%}</td>
						<td>{%$arr_item.v_end_time|date_format:"%Y-%m-%d"%}</td>
						<td>{%$arr_item.end_time|date_format:"%Y-%m-%d"%}</td>
						<td>
				<a href='index.php?c=zy_transport_track&m=browse&transport_track_id={%$arr_item.transport_track_id%}'>查看</a>&nbsp;&nbsp;
				<a href='index.php?c=zy_transport_track&m=edit&transport_track_id={%$arr_item.transport_track_id%}'>修改</a>&nbsp;&nbsp;
				<a href='index.php?c=zy_transport_track&m=del&transport_track_id={%$arr_item.transport_track_id%}' onclick="return confirm('您确实删除吗？');">删除</a>&nbsp;&nbsp;
				<a href='index.php?c=zy_transport_track_list&m=add&transport_track_id={%$arr_item.transport_track_id%}'>添加记录</a>
			</td>
		</tr>
		<tr class="hide_chunk">
			<td colspan="11">
				<div class="arrow_open"></div>
				
				<div class="load_list">
					<table width="96%" name="tab_sub" id="tab_sub" class="tab_sub" border="0" cellpadding="0" cellspacing="1" align="left">
						<thead>
							<tr>
								<th>箱号</th>
								<th>物资编号</th>
								<th>中文名称</th>
								<th>英文名称</th>
								<th>规格型号</th>
								<th>单价</th>
								<th>数量</th>
								<th>金额</th>
								<th>采购记录编号</th>
								<th>合同号</th>
								<th>订单号/批次</th>
								<th>操作</th>
							</tr>
						</thead>
						<tbody>	
							{%if $transport_arr[$arr_item.transport_track_id]%}
								{%foreach item=list from=$transport_arr[$arr_item.transport_track_id]%}
								<tr>
									<td>{%$list.box_no%}</td>
									<td>{%$list.materials_no%}</td>
									<td>{%$list.cn_name%}</td>
									<td>{%$list.en_name%}</td>
									<td>{%$list.specification%}</td>
									<td>{%$list.price%}</td>
									<td>{%$list.number%}</td>
									<td>{%$list.price * $list.number%}</td>
									<td>{%$list.plan_no%}</td>
									<td>{%$list.contract%}</td>
									<td>{%$list.order_no%}</td>
									<td>
										<a href='index.php?c=zy_transport_track_list&m=browse&list_id={%$list.list_id%}'>查看</a>&nbsp;&nbsp;
										<a href='index.php?c=zy_transport_track_list&m=edit&&list_id={%$list.list_id%}'>修改</a>&nbsp;&nbsp;
										<a href='index.php?c=zy_transport_track_list&m=del&&list_id={%$list.list_id%}' onclick="return confirm('您确认删除吗？')">删除</a>&nbsp;&nbsp;
									</td>
								</tr>
								{%/foreach%}
							{%/if%}
						</tbody>										
					</table>
				</div>
			</td>
		</tr>	
	{%/foreach%}
	</tbody>
	{%if $arr_item %}
	<tfoot>
		<tr>
			<td colspan="11"><div id="pager">{%$page_footer%}</div></td>
		</tr>
	</tfoot>
	{%/if%}
	</table>
	
	<div class="btn_list">
		<span class="btn_add" onclick="location.href='?c=zy_transport_track&m=add'">添 加</span>
	</div>
</div>
